# Base-Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
# Base-Maintainer: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer:
pkgname=st-xrdb
pkgname_base=st
pkgver=0.8.4
pkgrel=0
pkgdesc="Simple terminal emulator for X, with X resource support"
url="https://st.suckless.org"
arch="all"
license="MIT"
depends="ncurses-terminfo"
makedepends="fontconfig-dev freetype-dev libx11-dev libxext-dev libxft-dev"
subpackages="$pkgname-doc $pkgname-dbg"
source="https://dl.suckless.org/$pkgname_base/$pkgname_base-$pkgver.tar.gz
	st-xresources-20200604-9ba7ecf.patch"
options="!check"
builddir="$srcdir/$pkgname_base-$pkgver"

prepare() {
	default_prepare
	cd "$builddir"
	sed -i '/tic/d' Makefile
}

build() {
	make -C "$builddir"
}

package() {
	cd "$builddir"

	make install PREFIX=/usr DESTDIR="$pkgdir"
}

sha512sums="f6f95081f9d09d442228bac1149d75d36a9f4f049b5504cf5ce00b353563ff92c62a2628ce728663fec107a14bea0eeb22b7a72804c37090de33819243d7512a  st-0.8.4.tar.gz
1d3a9e780e76b19ea123948973d80d8c1f5a691c31c3e45ac62813d7d6b1c82fc3c170e7437615b4555d078835bc8065a06b758a9177b327119cf645f5d05736  st-xresources-20200604-9ba7ecf.patch"
